package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.query.PageResult;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {

    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo<Department> query(QueryObject qo);

    void save(Department department);

    void update(Department department);

    void delete(Long id);

    Department get(Long id);

    List<Department> listAll();

}
